package com.custom.starter.service;

import com.custom.starter.config.HelloProperties;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>Title: 测试service</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2018</p>
 * <p>Company: wang.yalei@fujisoft-china.com</p>
 *
 * @author wangyl
 * @version 1.0
 * @date 2020/6/29 10:02
 */
@Data
public class HelloService {

    @Autowired
    private HelloProperties helloProperties;

    public String sayHello(String name) {
        return helloProperties.getPrefix() + "|" + name + "|" + helloProperties.getSuffix();
    }
}
